var article = require('../models/ArticleModel');
var funs    = require('../fun/functions.js')
module.exports = function(req,res){
    var article_id  = req.query.article_id;
    page = isNaN(article_id) || article_id == 0 ? 4 : article_id;
    article.getArticleById(article_id,function(articleRow){
            var content = articleRow[0].c_content;
            var new_content = funs.changePicUrl(content,'http://scbadmin.quyum.cn');
            articleRow[0].c_content = new_content;
            res.render('about',{article:articleRow[0]})

    })
}